#ifndef BLOCK_DEV_H
#define BLOCK_DEV_H

#define MAX_DISKS 4

typedef struct BlockDriverState BlockDriverState;
extern BlockDriverState *bs_table[MAX_DISKS];

BlockDriverState *bdrv_open(const char *filename);
void bdrv_close(BlockDriverState *bs);
int bdrv_read(BlockDriverState *bs, int64_t sector_num, 
              uint8_t *buf, int nb_sectors);
void bdrv_get_geometry(BlockDriverState *bs, int32_t *nb_sectors_ptr);

#endif
